import {instance} from '@/utils/request'
export const addOrder =(params)=>{
  return instance.post('order/add',params)
}
export const findPageOrders = (params)=>{
  return instance.post('order/find/page',params)
}
export const removeOrder = (params)=>{
  return instance.delete(`order/delete/${params}`)
}
export const cancelOrder =(params)=>{
  return instance.get(`order/cancel/${params}`)
}
export const findOrder =(parmas)=>{
  return instance.get(`order/find/${parmas}`)
}

export const confirmOrder = (params)=>{
  return instance.get(`order/confirm/receipt/${params}`)
}
export const buyAgain = (params) =>{
  return instance.get(`order/buy/again/${params}`)
}